package com.itheima;

import com.itheima.pojo.Good;
import com.itheima.service.SearchService;
import com.itheima.service.impl.SearchServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;
import java.util.List;

/**
 * @author YYP
 * @date 2020/12/16
 */
@SpringBootApplication
public class MyApplication {

/*@Autowired
private static SearchService searchService;*/
    public static void main(String[] args) throws IOException {

        SpringApplication.run(MyApplication.class,args);


//
//        List<Good> goods = searchService.goodsSearch("手机");
//        for (Good good : goods) {
//            System.out.println("========");
//        }
    }
}
